#ifndef ENGINE_H
#define ENGINE_H

#include <iostream>
#include <ncurses.h>
#include <time.h>      // Timer
#include <string>

#include "message.h"
#include "database.h"
#include "networkManager.h"
#include "objectManager.h"



using namespace std;


class engine {


    public:

        bool flagDestroy;

        engine();
        virtual ~engine();

        void Init(void);
        void Tick(void);
        void TickSecond(void);
        void Draw(void);
        void feedInput(char pInput);

        bool debug;


    protected:



    private:

        // Objetcs
        message *msgSystem;
        networkManager *netManager;
        objectManager *objManager;
        database *dataBase;

        long laufzeit;
        int fps, sysBreak;

        string getRuntimeText(void);


};



#endif // SRSERVERENGINE_H
